﻿using RuoVea.ExEnum;
using RuoVea.Util;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RuoVea.Entity
{
    /// <summary>
    ///前世今生用户
    /// </summary>
    [SugarTable("vita_user")]
    [Description("前世今生用户")]
    public class VitaUser : DEntityBase
    {
        /// <summary>
        /// 用户Id
        /// </summary>
        public long VitaId { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        [MaxLength(20)]
        public string Name { get; set; }

        /// <summary>
        /// 头像
        /// </summary>
        public string Avatar { get; set; }

        /// <summary>
        /// 生日
        /// </summary>
        public DateTime Birthday { get; set; }

        /// <summary>
        /// 性别-男_1、女_2
        /// </summary>
        public Gender Sex { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [MaxLength(2000)]
        public string Remark { get; set; }

        /// <summary>
        /// 邮箱
        /// </summary>
        [MaxLength(20)]
        public string Email { get; set; }

        /// <summary>
        /// 手机
        /// </summary>
        [MaxLength(20)]
        public string Phone { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        [MaxLength(20)]
        public string Tel { get; set; }

        /// <summary>
        /// 最后登录IP
        /// </summary>
        [MaxLength(20)]
        public string LastLoginIp { get; set; }

        /// <summary>
        /// 最后登录时间
        /// </summary>
        public DateTime LastLoginTime { get; set; }

        /// <summary>
        ///  
        /// </summary>
        public VitaUserType UserType { get; set; }

        /// <summary>
        /// 状态-生者_0、死者_1、删除_2x
        /// </summary>
        public StatusEnum Status { get; set; } = StatusEnum.ENABLE;
    }
}
